
<div class="news form">
<?php echo $this->Form->create('News',array('type'=>'file'));?>
	<fieldset>
		<legend><?php __('Thêm mới tin'); ?></legend>
	<?php
	
		echo $this->Form->input('category_id',array('class'=>'required','type'=>'select','label'=>'Danh mục tin','options'=>$categories,'empty'=>'-- Chọn danh mục tin-- '));
		//echo $this->Form->input('parent_id',array('type'=>'select','options'=>$parentCategories,'empty'=>'--Choose Parent--'));
		echo $this->Form->input('name',array('class'=>'required','label'=>'Tên tin mới'));
		echo $this->Form->input('description',array('label'=>'Tóm tắt','rows'=>'3'));
		echo $this->Form->input('content',array('label'=>'Nội dung'));
		echo $this->Form->file('image',array('label'=>'Hình ảnh'));
		echo $this->Form->input('status',array('label'=>'Trạng thái'));
		//echo $this->Form->input('user_id', array('type'=>'select','options'=>$users));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
	<script>

    	//<![CDATA[
    		CKEDITOR.replace('NewsContent');
    	//]]>
		$('#NewsAddForm').validate();
	</script>
</div>

<!--
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List News', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Categories', true), array('controller' => 'categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Category', true), array('controller' => 'categories', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
-->